//
//  KFWMessageTabCell.h
//  KWNLaywerClient
//
//  Created by 孔六五 on 15/1/13.
//  Copyright (c) 2015年 张明磊. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol KFWMessageTabCellDelegate;

typedef NS_ENUM(NSUInteger, KFWMessageCellState)
{
    KFWMessageCellStateImage = 0,
    KFWMessageCellStateText,
    KFWMessageCellStateTextAddImage,
};

@interface KFWMessageTabCell : UITableViewCell

@property (nonatomic,strong) UILabel *label_timeLabel;
@property (nonatomic,strong) UILabel *label_textLab;
@property (nonatomic,strong) UILabel *label_nameLab;
@property (nonatomic,strong) UILabel *label_nameImageLab;
@property (nonatomic,strong) UIImageView *imageview_head;
@property (nonatomic,strong) UIImageView *imageview_imagehead;
@property (nonatomic,strong) UIImageView *imageview_textQiPao;
@property (nonatomic,strong) UIImageView *imageview_imageQiPao;
@property (nonatomic,strong) UIImageView *imageview_textWen;
@property (nonatomic,strong) UIImageView *imageview_imageWen;

@property (nonatomic,strong) UIImageView *imageview_one;
@property (nonatomic,strong) UIImageView *imageview_two;
@property (nonatomic,strong) NSIndexPath *indexPath;
@property (nonatomic,weak) id <KFWMessageTabCellDelegate>delegate;

@property KFWMessageCellState cellState;

- (void)creatSubViewsWithState:(KFWMessageCellState)state;
- (void)changeViewFrameWith:(id)model;

@end

@protocol KFWMessageTabCellDelegate <NSObject>

@optional

- (void)clickPhoto:(NSInteger)photoTag cellIndexPath:(NSIndexPath *)index;
- (void)clickHeadCellIndexPath:(NSIndexPath *)index;

@end

